<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>我的团队</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" />
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link rel="stylesheet" href="../css/base.css" />
    <link rel="stylesheet" href="../css/I_invited_personal.css" />
    <script src="../js/jquery-2.2.3.min.js"></script>
    <script type="text/javascript" src="../js/rem.js"></script>
    <script src="../js/common.js"></script>
</head>

<body>
<div class="header">
    <a href="javascript:history.back(-1)"><img src="../img/g_next.png" alt="" /></a>
    我的团队
</div>
<div style="height: .44rem;"></div>
<div class="container">
    <span class="left-sp">邀请人总人数</span>
    <span class="right-sp allpeople">0</span>
</div>
<div class="container" style="margin-bottom: .15rem">
    <span class="left-sp">团队总业绩</span>
    <span class="right-sp allCash">0</span>
</div>
</body>
<script>
    console.log('1111')
    $.ajax({
        url: SURL + '/jfd/users/fans',
        dataType: 'json',
        data: {
            userId: localStorage.getItem('userId'),
        },
        type: 'get',
        success: res => {
            $('.allpeople').text(res.totalTeam);
            $('.allCash').text(res.totalCash);

        }
    })
</script>

</html>
